package com.xintonghua.bussiness.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 作者：wanxianyi
 * 时间：2018/4/1.
 * 包名：com.xintonghua.bussiness.bean
 */

public class RewardBean implements Parcelable {

    /**
     * money : 50
     * create_time : 2018-03-08 15:21:34
     * user_id : 1
     * bank_id : null
     * bank_name : null
     * nickname : 撒大沙发
     * id : 5
     * customer_name : null
     * type : 2
     * shop_user_id : 1
     */

    private double money;
    private String create_time;
    private int user_id;
    private String bank_id;
    private String bank_name;
    private String nickname;
    private int id;
    private String customer_name;
    private int type;
    private int shop_user_id;

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getBank_id() {
        return bank_id;
    }

    public void setBank_id(String bank_id) {
        this.bank_id = bank_id;
    }

    public String getBank_name() {
        return bank_name;
    }

    public void setBank_name(String bank_name) {
        this.bank_name = bank_name;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCustomer_name() {
        return customer_name;
    }

    public void setCustomer_name(String customer_name) {
        this.customer_name = customer_name;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getShop_user_id() {
        return shop_user_id;
    }

    public void setShop_user_id(int shop_user_id) {
        this.shop_user_id = shop_user_id;
    }

    public RewardBean() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeDouble(this.money);
        dest.writeString(this.create_time);
        dest.writeInt(this.user_id);
        dest.writeString(this.bank_id);
        dest.writeString(this.bank_name);
        dest.writeString(this.nickname);
        dest.writeInt(this.id);
        dest.writeString(this.customer_name);
        dest.writeInt(this.type);
        dest.writeInt(this.shop_user_id);
    }

    protected RewardBean(Parcel in) {
        this.money = in.readDouble();
        this.create_time = in.readString();
        this.user_id = in.readInt();
        this.bank_id = in.readString();
        this.bank_name = in.readString();
        this.nickname = in.readString();
        this.id = in.readInt();
        this.customer_name = in.readString();
        this.type = in.readInt();
        this.shop_user_id = in.readInt();
    }

    public static final Creator<RewardBean> CREATOR = new Creator<RewardBean>() {
        @Override
        public RewardBean createFromParcel(Parcel source) {
            return new RewardBean(source);
        }

        @Override
        public RewardBean[] newArray(int size) {
            return new RewardBean[size];
        }
    };
}
